package com.tuanzi.loan.web.lazy.settlement;

import com.tuanzi.loan.business.service.settlement.SettlementPriceChangeRecordService;
import com.tuanzi.loan.core.vo.PageSearcher;
import com.tuanzi.loan.vo.request.settlement.SettlementPriceChangeRecordRequest;
import com.tuanzi.loan.vo.response.settlement.SettlementPriceChangeRecordResponse;
import com.tuanzi.loan.web.bean.CurrentUserBean;
import com.tuanzi.loan.web.lazy.LazyDataSessionModel;
import org.springframework.data.domain.Page;

/**
 * @author caiwanlin
 * @create 2018-01-16 16:52
 */
public class SettlementPriceLazyDataModel extends LazyDataSessionModel<SettlementPriceChangeRecordRequest,SettlementPriceChangeRecordResponse> {
    private SettlementPriceChangeRecordService settlementPriceChangeRecordService;
    public SettlementPriceLazyDataModel(SettlementPriceChangeRecordRequest searchRequest, CurrentUserBean session, SettlementPriceChangeRecordService settlementPriceChangeRecordService) {
        super(searchRequest, session);
        this.settlementPriceChangeRecordService = settlementPriceChangeRecordService;
    }
    @Override
    protected Page<SettlementPriceChangeRecordResponse> doLoad0(PageSearcher<SettlementPriceChangeRecordRequest> pageSearcher) {
        return settlementPriceChangeRecordService.list(pageSearcher);
    }


}
